import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import Home from '../views/Home.vue'
import table from "@/views/table.vue";
import upload from '@/views/upload.vue'
import Form from '@/views/form.vue'

Vue.use(VueRouter)

const routes: Array<RouteConfig> = [
    {path: '/', name: 'Home', component: Home },
    {path: '/table', name: 'table', component: table },
    {path: '/upload', name: 'upload', component: upload },
    {path: '/form', name: 'form', component: Form },
]
const router = new VueRouter({
  routes
})

export default router
